package cn.e4j.modular.crm.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDate;
import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author shixc
 * @since 2019-02-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWDB_T")
public class GwdbT extends PO<GwdbT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWDBENT", type = IdType.INPUT)
    private String GWDBENT;

    private String GWDB001;

    private String GWDB002;
    @Excel(name = "对象类型")
    private String GWDB003;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDB004;
    @Excel(name = "生效日期",importFormat="yyyy/M/d")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDB005;
    @Excel(name = "失效日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDB006;

    private String GWDB007;

    private String GWDB008;

    private String GWDB009;

    private LocalDateTime GWDB010;
    @Excel(name = "备注")
    private String GWDB011;
    @Excel(name = "客户编号")
    private String GWDB012;

    private String GWDB013;
    @Excel(name = "品号")
    private String GWDB014;

    private String GWDB015;
    @Excel(name = "结算价")
    private BigDecimal GWDB016;

    private String GWDB017;

    private String GWDB018;

    private String GWDB019;

    private String GWDB020;

    private String GWDB021;

    private String GWDBACTI;

    @TableField(fill = FieldFill.INSERT)
    private String GWDBUSER;

    @TableField(fill = FieldFill.INSERT)
    private String GWDBGRUP;

    @TableField(fill = FieldFill.UPDATE)
    private String GWDBMODU;

    @TableField(fill = FieldFill.INSERT)
    private String GWDBTIME;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDBDATE;

    @TableField(fill = FieldFill.INSERT)
    private String GWDBORIG;

    @TableField(fill = FieldFill.INSERT)
    private String GWDBORIU;



    @Override
    protected Serializable pkVal() {
        return this.GWDBENT;
    }

}
